<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=latin1">
        <link rel="stylesheet" type="text/css" href="../padrao.css" />
        <link rel="stylesheet" href="../jQuery/lista.css" type="text/css" media="all" />
        <script type="text/javascript" src="../jQuery/jquery-1.2.1.pack.js"></script>
        <script type="text/javascript" src="../jQuery/busca.js"></script>
        <script type="text/javascript" src="../sorttable.js"></script>

        <title> Template </title>

        <?php
        ob_start();
        include '../infobox.php';
        include '../verifica_usuario.php';
        include '../functions.php';
        include '../functions_office.php';
        include '../menu.php';
        ?>

    </head>
    <body>
        <div class="conteudo">

            <form method="POST" action="cadastrando_preco_especial.php">
                <table>
                    <tr>
                        <td>Digite a empresa:</td>
                        <td><input type="text" size="30" name="empresa_nome" id="inputString" onKeyUp="lookup(this.value);" onBlur="fill();" autocomplete="off"/>
                            <div class="suggestionsBox" id="suggestions" style="display: none;">
                                <img src="../jQuery/upArrow.png" style="position: relative; top: -12px; left: 30px;" alt="upArrow" />
                                <div class="suggestionList" id="autoSuggestionsList">
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>Aterro:</td>
                        <td>
                            <?php
                            include("mysqlconfig.inc");
                            $query = "SELECT * FROM ATERROS";
                            /* You can add order by clause to the sql statement if the names are to be displayed in alphabetical order */
                            $result = mysql_query($query);
                            echo "<select name='nome' value=''></option>";
                            $num_reg = mysql_num_rows($result);
                            // printing the list box select command
                            for ($i = 0; $i < $num_reg; $i++) {//Array or records stored in $nt
                                $nt = mysql_fetch_array($result);
                                echo "<option value=$nt[nome]>$nt[nome]</option>";
                            }
                            echo "</select>"; // Closing of list box
                            mysql_close($con);
                            ?>
                        </td>
                    </tr>
                    <tr>
                        <td> Valor especial para Poly: </td>
                        <td> <input name="empresa_valor_spc_poly" type="text" size="20" autocomplete='off'> </td>
                    </tr>
                    <tr>
                        <td> Valor especial para Truck: </td>
                        <td> <input name="empresa_valor_spc_truck" type="text" size="20" autocomplete='off'> </td>
                    </tr>
                    <tr>
                        <td> Valor especial para Toco: </td>
                        <td> <input name="empresa_valor_spc_toco" type="text" size="20" autocomplete='off'> </td>
                    </tr>
                    <tr>
                        <td> Valor especial para Carreta: </td>
                        <td> <input name="empresa_valor_spc_carreta" type="text" size="20" autocomplete='off'> </td>
                    </tr>
                    <tr>
                        <td> Valor especial para Transbordo: </td>
                        <td> <input name="empresa_valor_spc_transbordo" type="text" size="20" autocomplete='off'> </td>
                    </tr>
                    <tr>
                        <td> <input type="submit" value="Cadastrar"> </td>
                    </tr>
                </table>
            </form>
        </div>
    </body>
    
</html>
